package com.gxa.exception;

import com.gxa.utils.MessageCode;
import lombok.Data;


@Data
public class CustomerException extends RuntimeException {

    private MessageCode messageCode;

    public CustomerException(MessageCode messageCode){
        super(messageCode.getMsg());
        this.messageCode=messageCode;
    }

}
